<div class="row" id="header">
	<div class="col-md-3">
		<a href="__ROOT__"><img id="logo" src="__PUBLIC__/img/logo.png"></a>
	</div>
	<div class="col-md-6">
		<p id="contact"><i class="glyphicon glyphicon-earphone"></i>+81 18325978982<i class="glyphicon glyphicon-envelope"></i>1139981169@qq.com</p>
		<div class="input-group">
			<input type="text" class="form-control" placeholder="请输入商品名或编号...">
			<span class="input-group-btn">
				<button class="btn co-blbl" type="button">搜索</button>
			</span>
		</div>
	</div>
	<div class="col-md-3">
		<div class="login_info">
			<?php if($_SESSION['user_is_login']){?>
				<span>欢迎回来,<?=$_SESSION['user_name']?></span> <a href="<?=U('user/logout')?>">退出</a>
			<?php }else{?>
				<a href="<?=U("user/login")?>">欢迎登录</a>
				<a href="<?=U("user/regedit")?>">快速注册</a>
			<?php }?>
		</div>
		<a href="<?=U('Home/shopping/cartlist')?>" id="shopcart" class="pull-right">
			<i class="glyphicon glyphicon-shopping-cart"></i>我的购物车
			<?php if($_SESSION['user_is_login']){?>
			<span><?=M('user_cart')->where('user_id ='.$_SESSION['user_id'])->count();?></span>
			<?php }?>
		</a>
	</div>
</div>

